DSS-376: Xml Encoding changes before and after the signature process