Moved Java to C string conversion function to android_jni header file