title: Rails InvalidURIError on redirect_to  with a valid url
body: <p>I am getting the <code>ERROR URI::InvalidURIError: bad URI(is not URI?)</code> on doing redirect_to.  below the full error mgs </p>
  
  <pre><code>[2011-12-05 16:17:10] ERROR URI::InvalidURIError: bad URI(is not URI?): http://0.0.0.0:3000/list/#/items/offered/list/80-21614629999999,13-0468673/15/0?Filters={}
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/uri/generic.rb:746:in `rescue in merge'
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/uri/generic.rb:743:in `merge'
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpresponse.rb:163:in `setup_header'
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpresponse.rb:101:in `send_response'
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:86:in `run'
  /home/ramesh/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
  </code></pre>
  
  <p>This is the actual URL</p>
  
  <blockquote>
    <p><a href="http://0.0.0.0:3000/list/#/items/offered/list/80-21614629999999,13-0468673/15/0?Filters=" rel="nofollow">http://0.0.0.0:3000/list/#/items/offered/list/80-21614629999999,13-0468673/15/0?Filters=</a>{}</p>
  </blockquote>
  
  <p>I am totally puzzled because the same works fine in my production environment. </p>
  
  <p>Also If i remove the <code>?Filters={}</code> query string part from the url, it works fine in the dev environment.</p>
  
  <p>I don't understand why this throws an error when using <code>?Filters={}</code> in dev env. can someone clarify this?</p>