title: PHP urlencode - encode only the filename and dont touch the slashes
body: <pre><code>http://www.example.com/some_folder/some file [that] needs "to" be (encoded).zip
  urlencode($myurl);
  </code></pre>
  
  <p>The problem is that <code>urlencode</code> will also encode the slashes which makes the URL unusable. How can i encode just the last filename ?</p>