make use of the environment variable PYTHONIOENCODING instead of a hack to reload sys to set default encoding