If the plug of the charger contains three terminals, it may be incorrectly wired, by swapping ground and neutral. This is a dangerous configuration to use that also may or may not work, depending on what the installation does with the ground wire.
It may be the case if the plug has been manually replaced.