added deserialization for as_string()