idna_convert::encode_uri

Removes a weakness of encode(), which cannot properly handle URIs but instead encodes their path or query components, too.