add a friendly error message on UnicodeEncodeError exception