std.string: clean imports

[Issue 13253 - use more scoped imports in phobos](https://issues.dlang.org/show_bug.cgi?id=13253)
See also: #2661 
`printf` can not be used in `@safe` unittests.