arc = self._tryhook(path)\r
if arc and os.path.isfile(path):\r
self._createzip()\r
- self.zip.write(path, arc)\r
+ self.zip.write(path, arc.encode('utf_8'))\r
sta = os.stat(path)\r
oldmode = stat.S_IMODE(sta.st_mode)\r
self.rlist.append(_PathInfo(_CHMOD, path, oldmode))\r