fix bug in DownloadTorrent, open file use binary mode