fun uri(): URI
Returns this URL as a java.net.URI. Because URI is more strict than this class, the
returned URI may be semantically different from this URL:
[ and | will be escaped.%xx will be encoded like %25xx.These differences may have a significant consequence when the URI is interpreted by a web server. For this reason the URI class and this method should be avoided.