Fixed handling of Windows line endings.