Emit an xml declaration just containing the xml version number. Only charsets that aren't UTF will be emitted.
Deterimine the effective mode based on the requested version