Use encoding/hex.
Fix test.