Another way of doing META file generation

This feels less icky than encoding and decoding.