ffi.Pointer<Utf8> toUtf8(String? text) { return text == null ? "".toNativeUtf8() : text.toNativeUtf8(); }