Convert between export formats.

STUD-1196
Test error conditions.