Fix the error occurred when a column value includes unicode strings.
Its error message is "query error: user-defined function raised exception".