add bom and fix csv unicode writer