Use utf8 to encode subject and issuer.