In encode methods, return a ptr_lib::shared_ptr<vector<unsigned char> >
Code style: Rename BinaryXML to BinaryXml