Fix that setting an attachment with a :mime_type and :encoding would override the :encoding

Fixes #123