[core] don't fail on bad locale