libcore: Remove all uses of `~str` from `libcore`.

[breaking-change]