Remove ConvertUTF16ToQueryEncoding method, it's not used anywhere.
Simplify and correctly(?) implement the query encoding.