title: URL Encode String in NodeJs
body: <p>In PHP we have:</p>
  
  <pre><code>echo '&lt;a href="mycgi?foo=', urlencode($userinput), '"&gt;';
  </code></pre>
  
  <p>What is the NodeJs version of <code>urlencode();</code></p>