# File lib/rhc/vendor/okjson.rb, line 441
      def keyenc(k)
        case k
        when String then strenc(k)
        else
          raise Error, "Hash key is not a string: #{k.inspect}"
        end
      end