[java] Encoding URL query parameters in Java