Fix exception message string building.