fix unicode issue with error message