Encode pipe in url in html5.rb