Remove needless .html tests from gist download
Add proper windows encoding
Add more guards for windows encoded files