title: java.net.URLEncoder.encode(String) is deprecated, what should I use instead?
body: <p>I get the following warning when using <code>java.net.URLEncoder.encode</code>:</p>
  
  <pre>warning: [deprecation] encode(java.lang.String)
           in java.net.URLEncoder has been deprecated</pre>
  
  <p>What should I be using instead?</p>