Avoid error in TLS connections due to incorrect format