Only add charset= on text parts

Setting the charset for non-text parts is meaningless.
Merge branch 'no-charset-on-image' into nmaster
[HACK] Import rapportive encoding hacks
[HACK] remove call to add_required_fields
[HACK] Allow writing to decoded/raw_source