escape exception messages