Correctly escape error message in Chart View component.