Fix file encoding options for build.py
Fixes an error which could occur on some systems when attempting to build Highlight.js, notably where the default system character set was not UTF-8.
This patch causes all files to be opened in UTF-8 mode by the build script, solving the problem.