Man rescued after being stuck in manhole overnight