Fix inability to handle UTF-8 characters in query

optic14n uses URI.encode_www_form_component which handles UTF-8, unlike
CGI.escape.

There are a few URLs that have this characteristic which we got from the
Environment Agency logs.