This is a prerequisite for the AML → NodesetXML conversion.
Currently, Encoding Objects (Default JSON/XML/Binary) and their corresponding HasEncoding references are treated as overhead and are not included in the conversion.
This leads to incomplete NodesetXML output and breaks round-trip consistency.