fixes bug 977183 - UnicodeEncodeError due to use of str() function in crashes.py

@twobraids r?