messageinfo.py: Deal with Unicode errors in a more graceful way

Returning non-unicode string in case of conversion error just causes a
decoding error down the stream.