Fix fast_readline to handle windows line endings (\r\n)