Exercise in making a bencoding library.