more fixes to FileIO code to use String not TString (for 'A' verison of Windows API - mostly use explicit W version of APIs to avoid useless AsTString() calls