peer: switch to an encoder

update expected test results

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>