Fix the encoding of the query string