title: java.net.URI chokes on special characters in host part
body: <p>I have a URI string like the following:</p>
  
  <blockquote>
    <p><a href="http://www.christlichepartei%F6sterreichs.at/steiermark/" rel="noreferrer">http://www.christlichepartei%F6sterreichs.at/steiermark/</a></p>
  </blockquote>
  
  <p>I'm creating a java.lang.URI instance with this string and it succeeds but when I want to retrieve the host it returns null. Opera and Firefox also choke on this URL if I enter it exactly as shown above. But shouldn't the URI class throw a URISyntaxException if it is invalid? How can I detect that the URI is illegal then?</p>
  
  <p>It also behaves the same when I decode the string using URLDecoder which yields </p>
  
  <blockquote>
    <p><a href="http://www" rel="noreferrer">http://www</a>.christlicheparteiösterreichs.at/steiermark/</p>
  </blockquote>
  
  <p>Now this is accepted by Opera and Firefox but java.net.URI still doesn't like it. How can I deal with such a URL?</p>
  
  <p>thanks</p>