JNI bridge to MySQL's collation-based compare functions