tests: Actually display exceptions containing non-ascii chars

See #2039