Implement workaround for Python issue #17413: String values appear in exceptions produced by trace. Fix #61.

http://bugs.python.org/issue17413