Only escape slashes in query strings
Return correct value from slash escaping
Merge pull request #1460 from elzj/search_500_fix

Only escape slashes in query strings