title: Java - new URL(...) doesn't escape the first character
body: <p>I am trying to create a link that opens the <code>New issue</code> page on Github filling it with existing knowledge of the problem.</p>
  
  <p>In order to do so, i am using the query parameters like followed:</p>
  
  <pre><code>https://github.com/User/Repository/issues/new?title=Some text&amp;body=More Text
  </code></pre>
  
  <p>That works fine, however i am trying to format the document using Markdown and all symbols are being escaped after creating a new <code>URL</code> by calling</p>
  
  <pre><code>URL url = new URL("https://github.com/User/Repository/issues/new?title=Some text&amp;body=# Header # Another header");
  </code></pre>
  
  <p>The result will be this:</p>
  
  <pre><code>https://github.com/User/Repository/issues/new?title=Some text&amp;body=# Header %23 Another header
  </code></pre>
  
  <p>the second <code>#</code> is being escaped, but the first isn't and i don't quite understand why.</p>
  
  <p>Any ideas?</p>