string ↔ hex bytes, choose encoding
// hex appears here The hex encoder converts text to its hexadecimal byte representation using the TextEncoder API, defaulting to UTF-8. Each byte becomes a two-character hex pair. The decoder reverses the process, reading pairs of hex digits and converting them back to the original string. Options let you control the byte separator and letter case.