helper function to convert factor to character in a data.table
make.char(x)
x
a factor
factor
a character