Dont get me wrong, but if something is stupid, that's definitely not Windows...
I have Windows set up to hide known extensions.
Just opened notepad, File->Save As, selected "All files" in the dropdown list, selected "ANSI" (Unicode will not work in CHDK), than in the filename field typed "test.lua" without quotes and pressed Save.
And got my test.lua file. What am I doing wrong?