convert blank locales to nils