Need correct URI encoding and decoding of the query string for search