Make sure exception output is a string