Make modal forms and file upload widgets play nice in IE8/9