Fix, now correctly support any type of encoding in html files