[Python-ideas] Support WHATWG versions of legacy encodings