Pipes are illegal in Windows paths and filenames

Fixes #7967