use CodesetUtil to encode csv