Pascal Scripting: Utf8Encode

Prototype:

function Utf8Encode(const S: String): AnsiString;

Description:

Encodes a Unicode string into a UTF-8 encoded ANSI string.