This str() conversion can fail if the exception includes unicode text that can't be represented as ASCII.