[GdalTools] fix encoding issues again (fix #9080)

This pull will fix http://hub.qgis.org/issues/9080 and changes about encoding after the API change.