Converts a Dart string to a scoped UTF-8 C string.
ffi.Pointer<ffi.Char> string(String? value) => value == null ? ffi.nullptr : value.toNativeUtf8(allocator: _arena).cast<ffi.Char>();