Improve generation of change string for history (CO-803)