Drop folds and just provide some convenience encode/decode functions