support for non-std::string keys

This patch allowes to load/save xmls from ptrees with non-std::string keys