remove ^M s from line endings