Remove `~str` from miscellaneous libraries

r? @brson