fix form_enctype smarty function