removes the possibility of commit messages having carriage returns Closes #31671 See merge request !11077