title: java.net.URLEncoder#encode for Whitespace
body: <p><code>java.net.URLEncoder</code> will encode a single whitespace with <code>+</code>.</p>
  
  <pre><code>scala&gt; val encodedSpace = URLEncoder.encode(" ", "UTF-8")
  encodedSpace: String = +
  </code></pre>
  
  <p>However, per this W-3 <a href="http://www.w3schools.com/tags/ref_urlencode.asp" rel="nofollow">doc</a>, shouldn't it be encoded with <code>%20</code>?</p>