Use Exception.ToString in headers

fixes #2447