Export DumpList is not working if a value contains a comma

The str_replace/explode hack produces a too large and invalid value array if one of the values contains a comma.