Fix search json redirect to work with spaces in queries.

This wasn't properly escaping the query string when redirecting.
Merge pull request #397 from alphagov/fix_search_redirect

Fix search json redirect to work with spaces in queries.