fTools: fix MergeShapes and SpatialJoin

This should fix:
- http://hub.qgis.org/issues/7823
- http://hub.qgis.org/issues/7952
- http://hub.qgis.org/issues/8206

and a field name encoding problem of MergeShapes

Thanks