Taken from http://code.google.com/p/jcsv/