fix a problem that diagrams in xml generated on *nix can't be opened on win32