bugfix on converting Exception to string