title: URI::InvalidURIError on rails routing redirect
body: <p>in my routes.rb I have the follow route:</p>
  
  <pre><code>get '/merchandises/:cat/:id' =&gt; redirect('/products/%{id}')
  </code></pre>
  
  <p>This redirect work, but if the param id contain some character I get the error like this example:</p>
  
  <pre><code>Started GET "/merchandises/perfumes/Drakkar%20Noir%20Eau%20De%20Toilette" for 127.0.0.1 at 2012-03-07 23:21:28 +0100
  
  URI::InvalidURIError (bad URI(is not URI?): /products/Drakkar Noir Eau De Toilette)
  </code></pre>
  
  <p>Someone can tell me how to fix this?</p>