less stupid jni string handling
minor work, bugfixes, todo