As per #4, it'd be nice if we better supported conversion from a rust string to a prolog term and back, ideally without invoking a query.
There is PL_chars_to_term which could get a safe frontend. There's likely also something for the other direction in the native interface.