Strip off trailing newline character when calculating tls-unique-id.