Account for \r line endings in fastScan function