I try to write becoded resume_data for a torrent, this is ugly :(