fix encoding issue when printing attachments names