set encoding option to htmlspecialchars