Fix search in all the places it's broken, not just work queries
Only escape unescaped slashes
Merge pull request #1470 from elzj/search_500_fix

Fix search in all the places it's broken, not just work queries