replace trace ascii string with unicode string

some exceptions may contains unicode strings, for ascii trace messages the _handle_500 method will throw it will throws UnicodeDecodeError exception with exception value of: 'ascii' codec can't decode byte 0xd8 in position 179: ordinal not in range(128)