On export error, handle quotes within string.

STUD-1013
Merge pull request #1869 from edx/christina/export-error

On export error, handle quotes within string.