Sophist fix unescaped quotes in dispatchEvent