When the hostname is an IPv6 literal, encapsulate it

with [brackets] before calling Net::HTTP  [rt.cpan.org #29468]

See also https://github.com/libwww-perl/net-http/pull/10 to complete IPv6 support 
for LWP's HTTP/HTTPS modes.

I do think requiring the next Net::HTTP would be a good idea.