handle windows line endings