Get protected view of string using as_safe_string