Convert strings from Python into UTF-8 encoded bytes for GDAL.