A codec for [beta code](http://en.wikipedia.org/wiki/Beta_Code).