Be safe_string compatible.

As per #89 request.
There is no point in using unsafe conversion in tests.