fixed a bug where i was not passing the encoded search string to the search url