This is a polyfill for the TextDecoder and TextEncoder APIs.