improved parsing and serialization of csv files - escaping special
characters, allowing null characters in csv, serializing NaNs to empty
strings