It's also necessary to delete LC_ALL or it overrides the new LANG.
LC_COLLATE is the problem variable but is affected by LANG and LC_ALL
so just use them instead. Extends the fix made to geoip in dc955c.
Fix#11728, fix#12890, fix#13653, fix#13734, fix#13787, fix#13818.