Issue 3863: Fix for search 500 errors

Issue 3863: Fix for search 500 errors

Add slash to escaped characters list and actually escape the search query

https://code.google.com/p/otwarchive/issues/detail?id=3863