In order for a dumb charger to connect via USB, it must short the data connections. This is a new part of the standard, so a lot of power units (and older devices) ignore this. I'm not aware of any way to get around this in software though.