Fix IO::Socket::SSL warnings when not verifying hostname

This is the patch from https://rt.cpan.org/Ticket/Display.html?id=81948

I have tested that it stops the warning from occurring.
add test for rt #81948
Merge pull request #4 from dagolden/topic/fix-ssl-verify-mode-warnings

Fix IO::Socket::SSL warnings when not verifying hostname