bug-1390: added escaping wit htmlspecialchars function and encoding UTF-8