Set contentType attribute just before signing to allow encapsulated content