Use the new *Validator classes from libgimpplugin

* The new validator classes are better suited for each type of "file string" used in the plug-in (filename/basename, file path, file extension). Also, the validators are more restrictive now, especially in terms of invalid characters.
* Minor cleanup and a minor bugfix.