* Changed MakeSafeHTMLText to encode Unicode characters correctly as HTML entities.
* Changed URLEncode to ensure URL is in latin-1 encoding: URL encoding can only escape single byte characters.
* Replaced call to Chr() function in URLDecode with Char cast.