Fix problem with TLS encoding.