fix invalid size calculation in ReleaseStringUTFChars
more Android class library work