fix specs and add CiviCrm::XML.encode method