[rtorrent] Fixed bencode encoding bug with long types

This resolves issue #2749