Use generic encode method
Merge branch 'master' of github.com:malariagen/panoptes