title: Using System.Uri to remove redundant slash
body: <p>I have a condition in my program where I have to combine a server (e.g. <code>http://server1.my.corp/</code>) that may or may not have an ending slash with a relative path (e.g. <code>/Apps/TestOne/</code>). According to the <a href="http://msdn.microsoft.com/en-us/library/system.uri%28v=vs.110%29.aspx">docs</a>, <code>Uri</code> should...</p>
  
  <blockquote>
    <p>Canonicalizes the path for hierarchical URIs by compacting sequences such as /./, /../, //,...</p>
  </blockquote>
  
  <p>So when I do something like <code>var url = new Uri(server + relativePath)</code>, I'd expect it to take what would otherwise be <code>http://server1.my.corp//Apps/TestOne/</code> and remove the double slash (i.e <code>//</code> -> <code>/</code>), but <code>ToString</code>, <code>AbsolutePath</code> and various options still show the redundant/duplicate slash. Am I not using <code>Uri</code> right?</p>