Fix a memory leak in Android getLocalPath
Replace a few const char* by std::string in NativeWrappers