Some fTools fixes for SIP API updates

Fix to 5 files using QString functions in place of unicode functions.  Moved common code to ftools_utils