html: detect file encoding if a lowercase content-type meta element is present