Improves tls.connect argument compatibility