Sort out TRI_CompareValuesJson to use UTF8 on demand.