Would be good to check that the file operations succeeds, because Ruby 1.8 under Windows cannot handle files with non-ASCII characters.