Bencode implementation in Dart