Be safe_string compatible.

As per #89 request.
I'm not sure we want to drop compatibility yet. I would prefer keeping of_string/to_string and marking them as deprecated.