title: 301 Redirect with unicode characters - C#
body: <p>I need to do a 301 redirect on a URL that may have Unicode characters in it.  </p>
  
  <p>HttpUtility.UrlEncode isn't doing what I need because if I encode the whole URL it encodes any ':' or '/'</p>
  
  <pre><code>HttpUtility.UrlEncode("http://www.हिन्दी.com") = http%3a%2f%2fwww.%e0%a4%b9%e0%a4%bf%e0%a4%a8%e0%a5%8d%e0%a4%a6%e0%a5%80.com
  </code></pre>
  
  <p>(also: <a href="http://www.%e0%a4%b9%e0%a4%bf%e0%a4%a8%e0%a5%8d%e0%a4%a6%e0%a5%80.com">http://www.%e0%a4%b9%e0%a4%bf%e0%a4%a8%e0%a5%8d%e0%a4%a6%e0%a5%80.com</a> doesn't seem to work in firefox or IE, but it does in Chrome)</p>
  
  <p>Only other thing I can think of is to encode the different parts of the URL so that the protocol doesn't get encoded.</p>