common api: prefer formatting attachments using the attachment's name instead of URI