--- 'astro': patch --- Use TextEncoder instead of Buffer.byteLength() for Deno compatibility