On export error, handle quotes within string.

STUD-1013

@jzoldak I have added a new acceptance test (first for export). Is it OK to put it in shard 1? From my experience, that one finishes earlier than 2.

@andy-armstrong and @jzoldak Please review.