Fixing toCSVString when items are not strings