previous check for encryption was hacky and failed on some servers
Merge pull request #15 from oli-obk/fix/double_force_tls