code: function(object, encoding, cb = null) {
      var convertedObj = {}
      encoding = getEncodingOrDefault(encoding)
      for(var key in object){
          if(Buffer.isBuffer(object[key])){
              convertedObj[key] = object[key].toString(encoding)
          } else {
              convertedObj[key] = object[key]
          }
      }
      if(isFunction(cb)){
          return cb(null, convertedObj)   
      } else {
          return convertedObj
      }
  }
docs: check all elements in the given object (depth 1) for buffers, and if so,
  replace the entry by an encoded string. If the encoding is invalid or empty,
  it defaults to 'hex'
  @param  {Object}   object   objects with buffers to replace
  @param  {String}   encoding (optional) encoding to be applied to the buffers, or null for default value 'hex'
  @param  {Function} cb       (optional) callback function
  @return {Object}            new object where all buffers of the input object are converted to strings using the provided encoding