An even simpler version, only using T.pack/T.unpack.