added simple filtering for invalid file path strings.