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/
where content is:

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

and /root/.c9sdk/server.js is

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 --port 80 -a foo:barrr -w /root , the problem disappears.