title: Parsing string to add to URL-encoded URL
body: <p>Given the string:</p>
  
  <pre><code>"Hello there world"
  </code></pre>
  
  <p>how can I create a URL-encoded string like this:</p>
  
  <pre><code>"Hello%20there%20world"
  </code></pre>
  
  <p>I would also like to know what to do if the string has other symbols too, like:</p>
  
  <pre><code>"hello there: world, how are you"
  </code></pre>
  
  <p>What would is the easiest way to do so? I was going to parse and then build some code for that.</p>