BUG: don't rely on sys.getdefaultencoding if we don't need to