Add slash to escaped characters list and actually escape the search query
Merge pull request #1456 from elzj/search_500_fix

Issue 3863: Fix for search 500 errors