See RaylibCoreFlat.UnloadUTF8.
void UnloadUTF8( MemoryPointer<RChar> text, ) => _module.UnloadUTF8(text);