Encodes and decodes UTF-8 strings using the native TextEncoder and TextDecoder API.