fix really slow splitting of records on newlines