Use a String to identify TLS versions.

Previously we were using booleans, which wasn't flexible enough
for more than two versions.