I tend to prevent this problem by controlling what I drink the night before. After a day cycling I am probably a bit dehydrated anyway! I know people like to have a bed time drink but I'm afraid that's your downfall. Like somebody has said before going to the pub ruins this strategy.