Correctly escape search query