Plugging your phone into a USB wall socket is generally safe, but public ports are a different story. Here's what to know before you connect anywhere.