LSL badly needs functions along the lines of
string llHTMLEncode(string txt)
string llHTMLDecode(string txt)
which handles HTML enties such as
& -> &
> -> &gtr;
etc
to handle all 8 bit characters. It seems the functions exists as part of the JSON implementation.
This is a really serious lack if you're trying to serve web pages in SL.