title: how to escape backslash when creating a url
body: <p>I have a string  <code>s = "sunil\"</code>  and <code>t = "sunil/"</code></p>
  
  <p>When i create URI from the string, I get some abnormal values</p>
  
  <pre><code>http://admin:sunil%5c 
  </code></pre>
  
  <p>So my url is not getting executed properly. </p>
  
  <p>I want my url to be <code>http://admin:sunil\</code> or <code>http://admin:sunil/</code></p>
  
  <p>My URL creation is like this:  <a href="http://userid:password@host:port" rel="nofollow">http://userid:password@host:port</a></p>
  
  <p>where in my password string contains "\" character. So it fails to create the URL correctly  </p>
  
  <p>please give information how to retain <code>\</code> and <code>/</code> inside a string when creating a url.</p>
  
  <p>i dont know if i have to use replace() in the string.</p>