Better method for detecting io encoding. refs #1897

git-svn-id: http://svn.flexget.com/trunk@3278 3942dd89-8c5d-46d7-aeed-044bccf3e60c