utf8-friendly and display errors