setting an invalid locale tends to crash things so we should verify that the locale is sane before changing it in tl-set-clientlang.sh.