Not convert to OS-specific path when generate undohist file name

On windows, `convert-standard-name` will replace `/` with `\`, and then the following transformation (replace `/` with `!`) will work incorrectly, causing the generated file name invalid.