common.sh: set LC_CTYPE, LC_ALL and LANG