code: def _convert_string_name(self, k):
          
          k = String(k, "iso-8859-1")
          klower = k.lower().replace('_', '-')
          bits = klower.split('-')
          return "-".join((bit.title() for bit in bits))
docs: converts things like FOO_BAR to Foo-Bar which is the normal form