OFString_UTF8: Improved range checks