encode panics as strings

fixes #127