// activate internal pullups for twi.
digitalWrite(SDA, 1);
digitalWrite(SCL, 1);
Doing this in the sketch seems to be equivalent:
pinMode(SDA, INPUT);
pinMode(SCL, INPUT);
pinMode(SCL, INPUT);
Even doing this immediately after Wire.begin() potentially still sends 5V glitches on SDA/SCL.
(tested with arduino-1.6.0 on a NANO)