ptree parser does not trim CDATA the same, so remove trailing whitespace to avoid test failures in save_map_test.py