Fix XSS issue in plain text spellchecker (#1489806)