Fix for issue #35

I have similar problem that causes by one of the javascript file.
This fixes the `invalid byte sequence in UTF-8` error.
It passes the test suite.