How to set the web ide encoding to utf8 when ubuntu system reboot in /etc/rc.local?

Hello, I put the following line in /etc/rc.local to auto start web ide when system reboots:
sudo /root/onSystemStart.sh
where onSystemStart.sh content is:

#!/usr/bin/env bash
forever start /root/.c9sdk/server.js --listen 0.0.0.0 --port 80 -a foo:barrr -w /root

and /root/.c9sdk/server.js is https://github.com/c9/core/blob/master/server.js

The problem is I can’t enter or print any non-ascii character in the web ide terminal. But if I manually open a shell and enter the forever start /root/.c9sdk/server.js --listen 0.0.0.0 --port 80 -a foo:barrr -w /root , the problem disappears.