Fix envelope headers handling
Fix envelope headers handling

Always encode the envelope's headers

CredentialEngine/CredentialRegistry,CredentialEngine/CredentialRegistry,CredentialEngine/CredentialRegistry