Use MCJavaStringToStringRef.