title: How to pass a filename via URL?
body: <p>I need to pass filenames via the url, e.g.:</p>
  
  <pre><code>http://example.com/images/niceplace.jpg
  </code></pre>
  
  <p>The problem I'm having is when the file name contains a blank character, e.g.:</p>
  
  <pre><code>http://example.com/images/nice place.jpg
  </code></pre>
  
  <p>or</p>
  
  <pre><code>http://example.com/images/nice%20place.jpg
  </code></pre>
  
  <p>For these two URLs, codeigniter complains about the blank char: "The URI you submitted has disallowed characters." </p>
  
  <p>How should I go about fixing this? </p>
  
  <p>I know I can add the blank character to the <code>permitted_uri_chars</code> in <code>config.php</code> but I'm looking for a better solution as there might be other disallowed characters in a filename.</p>