Try to set locale earlier and with POSIX::setlocale [CT#94487]