fixed encoding in main.js