(#19487) Remove check for invalid characters in Puppet::SSL::Base

This is to allow us to connect to HTTPS sites using non puppet certificates.