Simple encoding and decoding | ScratchStats