Fixes #538

This tries to coerce exceptions into strings.