Escape characters to fix a rendering error