(#11930) Add validation of Windows paths in the generate function
The generate function did not handle Windows style paths when
validating that it was fully qualified or that it only contained
alphanumerics, file separators, or dashes, as Windows paths can also
contain '\', as well as ':', but only when it is part of the drive
specifier.