make error message accept unicode