Added method to encode PKCS7 data type messages.