Add UTF-8 encoding declaration to htmlspecialchars.