One exception: DetectXmlDeclEncoding.
This can be called to get original delaration.