Quote query parameters when reconstructing the string [RD-54]

As I mention in the comments, `parse_qs` unencodes everything when it runs.

We couldn't use `urlencode` because it uses `quote_plus`, which doesn't encode how we would like. `quote` seems to work, however, so we can `quote` the values when reconstructing the query string.