Fixes #9257. This is needed when tokenizing input containing DOS line endings, i.e. the CRLF sequence.