Revert "Switch to Jackson for encoding"

This reverts commit 1d1745250dbdef8c89f7613ad8003e2f2be4948a.