compress and decompress work

Using '\0' to separate entries in the output, not sure if that's a good
idea.