function Utf8Decode(const S: AnsiString): String;
Decodes a UTF-8 encoded ANSI string into a Unicode string.