Could be that Gmail creates the wrongly encoded smime part of that some system afterwards changes the email. The headers show that somewhere proofpoint (PP) is involved:
X-Proofpoint-encrypted: text/plain,application/pkcs7-signature,application/pkcs7-signature
Could it be that PP changes the message?