The charset the serialized bytes will ultimately be encoded into.
Characters the charset cannot represent are emitted as numeric
character references (&#N;) in text / attribute content, matching
libxml2’s serializer: a non-UTF-8 output encoding escapes anything
outside its repertoire rather than dropping or mis-encoding it.