Be safe_string compatible.

As per #89 request.
Note that you'll have to add relevant cppo guards to use `[@@ocaml.deprecated]`, as it is not available on 4.01.