win32: filesystem: fix opendir if the folder name ends with a slash
Add some optimization of the wildcard creation as we can tell the end size and need to pass through each character anyway to correct the forward slashes.
Also set the proper back slash for UWP/UAP directory listing.