Simple CSV parsing and encoding.