Move afcHelper_escapeHtmlChars() to core.js (seems to fix #88)