Support serializing as csv/tsv to in-memory string