title: jQuery encodeURI for href not working
body: <p>I'm having problems encoding a string so I can place a variable into a link.  I'm sure this is really simple, but i had trouble turning anything up.</p>
  
  <pre><code>$("a.inquiry").attr("href", "/inquiry/6933/text=" + encodeURI("text o"));
  </code></pre>
  
  <p>This doesn't work.</p>
  
  <pre><code>encodeURI("text o")
  </code></pre>
  
  <p>Still returns:</p>
  
  <pre><code>link/text o
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>link/text%20
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>$("a.inquiry").attr("href", encodeURIComponent("/inquiry/6933/text=" + "text o"));
  </code></pre>