Added foundation::replace_all.