use ScopeBuffer in std.file

This is an initial run at eliminating the generation of GC allocated garbage in std.file by replacing calls to toStringz and toUTF16z with use of ScopeBuffer.