Why not use CGI.escape here as opposed to gsubbing?