Handling exception where commit message contains xml illegal characters.