language changes: to_owned() on &str is being deprecated.