fixed missing hex->json conversion when including pubkey to encrypt a message