Typeahead component needs to urlencode query params

Closes COUCHDB-2456