int safeParseInt(String v, [int base]) { if (v.startsWith('00')) { throw FormatException('invalid RLP: extra zeros'); } return int.parse(v, radix: base); }