Fixed transcoding of multi-part/multi-media items.

Fixes #1041