CSV export fix + encoding fix