bugfix unicode decode errors when exceptions