fixed attachments re-encoding
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>