open files by using sys.getfilesystemencoding() + refactor stuff
open files by using sys.getfilesystemencoding() + refactor stuff

mrjefftang/psutil,mrjefftang/psutil,msarahan/psutil,msarahan/psutil,qbit/psutil,giampaolo/psutil,giampaolo/psutil,jamesblunt/psutil,qbit/psutil,cloudbase/psutil,cloudbase/psutil,jamesblunt/psutil,0-wiz-0/psutil,jamesblunt/psutil,0-wiz-0/psutil,cloudbase/psutil,qbit/psutil,mrjefftang/psutil,msarahan/psutil