gj_util: fix bug that when the result cannot be decoded by utf8, the error message uses an invalid variable.