Change to_owned() to to_string().