Fix saving generated locales.