Object encoding and decoding via spack