Open InMemoryUploadedFile instances before read()-ing them into attachments (bug 833499)