Add `std::fmt::to_str` function

We could do this as a default method on `std::fmt::Format`, but there is really no reason for a user to override the functionality of this. Once `std::to_str::ToStr` is removed, this will be the preferred way of converting things to strings.