Only use entityReplace() on the parts of error messages that are external