A fix for a SIP API change problem in fTools

Noticed this will trying to create a regular grid - uses QString functions instead of unicode functions for handling filename.  Found equivalent problem in 4 other files.  Pulled out into ftools_utils.