Is it dangerous to sail around the world?

What about encountering pirates ?