Attachment functionality - encode non-ascii filenames properly