How can I avoid an unexpected tax bill?

If your first fortnightly pay of the new financial year is on 1 July, you could have a 27th pay period, so how do you avoid a tax bill next financial year?