Not ready for testing yet, but brought in likely code fragments from XMl::C14N and xmlsec