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