Make sure string are encoded when passed to xml_marshaller