Sailing through the big crunch-big bang transition