After running this command it will copy all the .html files from sourcedir, and it will save them to distdir (changing characters like '�' to 'ñ', so you can use UTF8-based APIs)
npm install html-utf8 --save-dev
html-utf8 -d sourcedir -o distdir
or
html-utf8 --dir sourcedir --output distdir