Ruby http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html Ruby strings are binary, so same Unicode problems as PHP CGI.escapeHTML() // very dumb!