Correctly encode unicode in query strings