Removed invalid chars from strstr. The result was an invalid string for filenames.