fix bug getting charset from incorrect meta tags via