Fixes double escaping on search.