Handle a misconfigured LC_CTYPE in a few more places, including when importing Sphinx (since that can lead down a rabbit hole that results in calling locale.getdefaultlocale() which in turn invokes http://bugs.python.org/issue18378--in this case a useful warning is displayed and Sphinx is just considered not importable.