rewrite fgetcsv to support Chinese