Gets rid of annoying deprecation warning for locales checking