title: javascript encodeURIComponent returning additional characters
body: <p>For some reason, I am getting additional code in my encoded URI's with javascript encodeURIcomponent function, namely %25 character:</p>
  
  <p>My function is:</p>
  
  <pre><code>function twit_click() {
      var u="https://www.website.com/&lt;?php echo $_SESSION['id'];?&gt;";
      var t="sometext";
      window.open('http://www.twitter.com/share?url='+encodeURIComponent(u)+'&amp;text='+encodeURIComponent(t),'twitsharer','toolbar=0,status=0,width=626,height=436');
      return false;   
  }
  </code></pre>
  
  <p>when I click the text and call twit_click() function, I get the following URL:</p>
  
  <p><code>http://twitter.com/intent/tweet?text=sometext&amp;url=https%253A%252F%252Fwww.website.com%252Fuserid</code></p>
  
  <p>as opposed to what it should be:</p>
  
  <p><code>http://twitter.com/intent/tweet?text=sometext&amp;url=https%3A%2F%2Fwww.website.com%2Fuserid</code></p>
  
  <p>am I missing something? It is adding in additional "25" characters which would imply I have % in my URI which I clearly do not.</p>