Help with WeakStringRef when inserting into database

The duckdb appender api has a line of non-working code to convert a WeakStringRef types to be inserted into the database as a type Varchar. I have never used the WeakStringRef type so I do not know how this conversion should be handled, or if the api should just remove the support for WeakStringRef only support regular Strings. The WeakStringRef documentation does not encourage the use of the type for general users. Is it necessary to support them for inserting data into a database, and if so how would it be converted to a ccall?