Fixed Unicode character map errors on Build

The Python build script did not specify the character set to use for opening file streams, which could result in a failure to build Highlight.js on certian systems. This patch adds `encoding = "utf-8"` arguments to all `open()` calls in the build script, which solves the problem.