I think used a isolation transformer can solve this problem.