Fixed Windows bug where filenames were using illegal chars.