I think you need to add a delimiter parameter (taken from the `lineterminator` config in the dialect) to the call to `each_line`. This will ensure that each row is processed properly