Support non-ascii chars as arguments to format.

We've had errors in export related to non-ascii chars being passed to format. Proactively making these usages of format robut to non-ascii chars.

Part of STUD-868
Merge pull request #2020 from edx/christina/export-bug2

Support non-ascii chars as arguments to format.