title: Invalid URI: The hostname could not be parsed
body: <p>I am trying to Construct a URI. But I am unable to handle bad URIs.</p>
  
  <p>Is there any way we can handle bad URIs?</p>
  
  <p>Code I am using:</p>
  
  <pre><code>if (reviews[e.Item.ItemIndex].URL.ToString().Contains("http:"))
  {
        oURI = new Uri(reviews[e.Item.ItemIndex].URL.ToString());
  }
  else 
  {
     oURI = new Uri("http://"+ reviews[e.Item.ItemIndex].URL.ToString());
  }
  </code></pre>
  
  <p><code>else</code> part gets error out for bad URIs.</p>
  
  <p>Thank you!</p>