fixed #1812: A warning of getStringWithEllipsisJni function when compiling it with clang.

Also, some jni functions return  `std::string` now.