Fix issues which occured after updating the build tool.
Fix encoding after generating html.