Issue #172: added validator support for TextWidget, and using to sanitize editor filenames