Only escape slashes in query strings

Only escape slashes in query strings

https://code.google.com/p/otwarchive/issues/detail?id=3863