Workaround of bz2 buffering bug.