Add support for more string encoding and csv file