Fixes handling of windows line-endings.