[Bug #776202] Apply Walter Doerwald's patch to use text mode for encoded files
[Bug #776202] Apply Walter Doerwald's patch to use text mode for encoded files

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator