Format public key into Hex string.