Fixed a bug in reading each CSV line and made the CSV mechanism more
robust.