Fix json2xml from crashing on strings