cupsfilter: Unable to determine MIME type of ““??”.**
Quotes: “ versus "

You are using 'typographers' quotes instead of 'regular' quotes.
Try this line:

for file in *.html; do /usr/sbin/cupsfilter "$file" &gt; "$file".pdf; done


note the difference in quotation