Refactoring of EncodingQuery.SourceFiles validation