Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I1bd4bc60cba052ac158de91322e6621ad5badfa7