slash and backslash in valid_string validation

Used frequently in URI's and file paths.
Merge pull request #1661 from mikepmtl/patch-1

slash and backslash in valid_string validation