code improvements for OutputFilenameValidator