handle 'text/html; charset=...' as well as plain text/html

reported by @gRegorLove. thanks again!