construct jni strings from byte arrays to avoid utf issues