How are you testing the CSV file? Opening it in Excel again or in Notepad? The former will likely try and convert anything that looks like a number into a number.