Connecting to a public Wi-Fi network, especially one with poor security, comes with real risks. Here's how to stay safe.