encode email as a hex string of UTF-8 bytes