Reset enctype on widget creation