title: Rails view variables not escaping spaces with %20, how do I force an escape?
body: <p>I have a number of link_to's in my view that's in HAML.  One example is as follows:</p>
  
  <pre><code>= link_to "http://somedomain/submit?phase=2&amp;url=#{request.fullpath}&amp;title=#{page_title}", :target =&gt;"_blank" do
  </code></pre>
  
  <p>As it turns out each time I attempt various escapes, I still get the "Use %20 in place of spaces" error from <a href="http://validator.w3.org" rel="nofollow">http://validator.w3.org</a>.</p>
  
  <p><strong>What is the proper way to escape a variable in this case?</strong></p>