Canonical differential geometry of string backgrounds