fix encoding issue of spatial index creation (fix #7794)

fixes http://hub.qgis.org/issues/7794