Plugging in your device, with the intent of charging, shouldn't implicitly grant the host the right to install software or access files on the guest.
The USB protocol doesn't seem properly designed for this use case: I should be able to plug in to charge without having to worry about security holes.