protected function _fixCharset()
{
if (LIBXML_VERSION < 20800 && stripos($this->_html, 'meta charset') !== false) {
$this->_html = preg_replace('~<meta charset=["\']?([^"\']+)"~i', '<meta http-equiv="Content-Type" content="text/html; charset=$1"', $this->_html);
}
}