Use cgi module for escaping chars