Polyfill for the Encoding Living Standard's API