URI.parse does not validate components
happily return a
URI::HTTPS object, even though it has an invalid component and cannot be constructed using
This is because the parser uses the undocumented initializer which defaults to not validating the components. I would suggest to send that initializer the flag to allow validation or to use the build method instead from the parser.