librustdoc: Remove all `~str` usage from librustdoc.

r? @brson