dir/b > files.txt
I guess it has to be done in PowerShell to preserve unicode signs.
Simply put:
dir -Name > files.txt