crude hack to fix (what I consider) a bug in the CSVReader lib. Also added a unit test whilst trying to track down the issue. Need a more permanent solution in the future