Add Encoding API to browser env

Specification: https://encoding.spec.whatwg.org/