title: Why should I urlencode URLs passed via GET
body: <p>Suppose I do</p>
  
  <pre><code>http://site.com/something?url=http://lol.com/lol
  </code></pre>
  
  <p>are there any advantages (eg security etc) of doing </p>
  
  <pre><code>'http://site.com/something?url=' . urlencode('http://lol.com/lol');
  </code></pre>
  
  <p>instead of just passing in an unencoded version of the url in? Why should I urlencode something passed via GET instead of just passing in an uncoded version (though of course if the url param has &amp; or ? or = in it then I should definitely encode it...but suppose they don't, why should I encode them)</p>