Ticket #23577 - Make cgi escaping unicode safe.