It's not true that the city is called Beijing in every other context. Peking university can still be found in Beijing, for example.