Replace illegal Windows filename chars from cached file paths

fixes #13019