Add a generic function to get the list of files into a directory on Windows operating systems, move wchar functions to genericFeatures class