Removes ^M character added to end of line