Charging your device with the wrong cable or USB port could infect it with malware. Here's how to securely charge gadgets while traveling.