A major electricity interconnection project linking Britain and Ireland has been rerouted after widespread opposition from Harry Potter fans.