Some tiny modify.
Determine what this env can use UTF-8 locale. If env can use UTF-8 locale, then export LANG as it.