utf8 encoding for error messages