Normalizes line endings and adds a gitattributes file to prevent recurrence of the issue