Updated bencoder to use runes consistently and extracted some constants.