themasch/node-bencode — pull request #2 by jhermsmeier (2012-07-22 14:15:30+00:00)
Title: Add `encoding` parameter to `#decode()`

Changed the boolean `toString` parameter on `#decode()` to the `encoding` parameter, which
lets you specify the encoding the bytestring buffer will be converted into.

So instead of
```javascript
var object = bencode.decode( data, true )
```
you can choose the encoding with
```javascript
var object = bencode.decode( data, 'utf8' ) // OR
var object = bencode.decode( data, 'ascii' ) // etc...
```