We can't use isUTF8 here as it might be an OFConstString.