Export data as tab-delimited file, with correct text encoding