title: Swift URL appendingPathComponent converts `?` to `%3F`
body: <pre><code>let url = URL(string: "https://example.com")
  let path = "/somePath?"
  let urlWithPath = url?.appendingPathComponent(path)
  </code></pre>
  
  <p>After appending, the path <code>/somePath?</code> becomes <code>somePath%3F</code>.</p>
  
  <p>The <code>?</code> becomes a <code>%3F</code>. Question Mark is replaced with the percent-encoded escape characters.</p>
  
  <p>The URL does output correctly if I use:</p>
  
  <pre><code>let urlFormString = URL(string:"https://example.com/somePath?")
  </code></pre>
  
  <p>Why does <code>appendingPathComponent</code> convert <code>?</code> to <code>%3F</code>?</p>
  
  <p>How can I use <code>appendingPathComponent</code> if the path component contains a question mark?</p>