Change HttpParametersUtils emulation.

Instead of emulating HttpParametersUtils, emulate java.net.URLEncoder.
This allows the encoding to be set (amongst the limited options available
in GWT) and provides consistency across backends.