safer exception repr