Indeed you are right, I just tested it. If I encode the script in ANSI (which on my computer means Latin-2) - and remove the use UTF-8 line, of course - then it works. Not much of a general solution as other people will have different encodings on their Windows machines, but it's at least some limited functionality for some situations.