Sanitize output, trim strings, skip bogus files.