get rid of locales deprecation warning