code: function invalidChar(name, field = undefined) {
    let msg = `Invalid character in ${name}`;
    if (field !== undefined) {
      msg += ` ["${field}"]`;
    }
    return msg;
  }
docs: Using a default argument here is important so the argument is not counted towards `Function#length`.