Fix problem with udf-8 json output.