The URI module is not quite in compliance with the canonical RFC3986, when handling IPv6 literal hostnames. These should be stored with `[]` included. This is handled correctly in the authority field, but not in the hostname field. We can't change this behaviour now, so add doc & test.