Forces a charvec or charpack to materialize its R-level strings
(CHARSXPs), caching them on the object; the native store or raw payload
is released. Ordinary character vectors are returned unchanged. This is a diagnostic/escape hatch: code
that needs guaranteed-plain string storage (for example, before handing a
vector to C code that bypasses ALTREP accessors) can call it explicitly.
Examples
x <- charvec("a", "b")
charport_materialize(x)