Support locale of China and so on.

Goagent在中文界面下的ubuntu运行会报错，所以稍稍改了一下。