title: How to prevent pipe character from causing a Bad URI Error in Rails 3/Ruby 1.9.2?
body: <p>In implementing OAuth2 in my app, I need to handle URIs like:</p>
  
  <p><a href="http://localhost:3000/sessions/create/?code=lorem|ipsum" rel="noreferrer">http://localhost:3000/sessions/create/?code=lorem|ipsum</a></p>
  
  <p>Not sure if it's a Rails 3 or Ruby 1.9.2 problem (maybe URI.parse), but in any event, WEBrick kicks <code>Error bad URI</code>.</p>
  
  <p>Anyone know of a workaround? Thanks.</p>