treat peer_id as hex everywhere

Fixes #203