Ensure DS key_tag and alg are strings for XML.