Escape only query characters.