Escape query encoding