Expand description
Character encoding handling (§22, §85 Phase 4).
Encoding detection, XML declaration encoding, BOM behavior, UTF-8/UTF-16 validity, legacy encodings, conversion errors, output conversion, serializer fallback, custom encoding handlers.
Phase 0: scaffolded. Implementation begins in Phase 4.