When the hostname is an IPv6 literal, encapsulate it
with [brackets] before calling Net::HTTP  [rt.cpan.org #29468]