Fix Bug #1314: Fix problems with attachments and UNICODE characters