Fix exception to support unicode (and print url_name).

Part of STUD-868
Support unicode in text field.

Part of STUD-868
Merge pull request #2018 from edx/christina/export-bug

Bug fixes related to unicode support in export workflow.