fixing possible encoding error for sendgrid strategy (only for html and text parts)
fix for case when the encoding isn't present in the list
Merge pull request #9 from andersonsp/fix_encoding_issue

handle encodings of text and html parts in sendgrid strategy