Added small fix for issue #2990 - SocketException in CakeEmail::attachments() does not output filename