Modified code to use UTF8String instead of AnsiString for better interoperability with regular UnicodeStrings on new Delphi environments