title: Best way to urldecode (php) in NodeJS
body: <p>So I am trying to decode a string that was previously urlencoded with php in Node. About a month ago I had it working with:</p>
  
  <pre><code>querystring.unescape(str.replace(/\+/g, '%20'));
  </code></pre>
  
  <p>Then it just stopped working - not sure if it was some Node upgrade or what. After playing around it seems I can just use 'unescape()' but I am not sure it if it's foolproof yet.</p>
  
  <pre><code>unescape(str.replace(/\+/g, '%20'));
  </code></pre>
  
  <p>My question is what is the best way and has anyone else noticed this issue. Note that the first line works with simple strings but breaks down with odd characters - so maybe some encoding issue I am not seeing. </p>
  
  <p>Here's a string: </p>
  
  <p>%E6.%82%CCI-T%8C%01+A</p>
  
  <p>Now go to <a href="http://www.tareeinternet.com/scripts/unescape.html" rel="noreferrer">http://www.tareeinternet.com/scripts/unescape.html</a> and decode it. That is my original (it's an RC4 encrypted string). I want Node to return that string.</p>