title: How to try create an url from an uri without a trailing `/`?
body: <p>If I run this <a href="https://stackoverflow.com/help/minimal-reproducible-example">MCVE</a>:</p>
  
  <pre><code>public static void Main()
  {
      Uri.TryCreate("https://dotnetfiddle.net", UriKind.Absolute, out var result);
      Console.WriteLine(result); // should be "https://dotnetfiddle.net"
  
      Uri.TryCreate("https://dotnetfiddle.net:5555", UriKind.Absolute, out var result5555);
      Console.WriteLine(result5555); // should be "https://dotnetfiddle.net:5555"
  
      Uri.TryCreate("https://dotnetfiddle.net?a=1", UriKind.Absolute, out var result2);
      Console.WriteLine(result2); // should be "https://dotnetfiddle.net?a=1"
  
      Uri.TryCreate("https://dotnetfiddle.net/", UriKind.Absolute, out var result3);
      Console.WriteLine(result3); // correct
  
      Uri.TryCreate("https://dotnetfiddle.net/?a=1", UriKind.Absolute, out var result4);
      Console.WriteLine(result4); // correct
  
      Uri.TryCreate("https://dotnetfiddle.net/test", UriKind.Absolute, out var result5);
      Console.WriteLine(result5); ; // correct
  
      Uri.TryCreate("https://dotnetfiddle.net/test?a=1", UriKind.Absolute, out var result6);
      Console.WriteLine(result6); // correct
  }
  </code></pre>
  
  <p>I will get the following output:</p>
  
  <pre><code>https://dotnetfiddle.net/
  https://dotnetfiddle.net:5555/
  https://dotnetfiddle.net/?a=1
  https://dotnetfiddle.net/
  https://dotnetfiddle.net/?a=1
  https://dotnetfiddle.net/test
  https://dotnetfiddle.net/test?a=1
  </code></pre>
  
  <p>but I am looking for:</p>
  
  <pre><code>https://dotnetfiddle.net
  https://dotnetfiddle.net:5555
  https://dotnetfiddle.net?a=1
  https://dotnetfiddle.net/
  https://dotnetfiddle.net/?a=1
  https://dotnetfiddle.net/test
  https://dotnetfiddle.net/test?a=1
  </code></pre>
  
  <p>I read the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.uri.trycreate?view=netframework-4.8" rel="nofollow noreferrer">official documentation</a> without finding about this issue.</p>
  
  <p>How can I fix it to avoid the trailing '/' at the end of the uri? I would like to get the same output than my output. Keeping the <code>/</code> when I give one, but remove it when I dont.</p>