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