Replace Node-only Buffer.byteLength with a TextEncoder-based UTF-8 byte length helper so the Set Name page and byte counter work in the browser. By specifier.