fix for attachments with dots and spaces