Only escape slashes in query strings