Replace usage of deprecated Title::escapeLocalURL()

Change-Id: Ib58af87bebbbe5a5a8b7979e26ea2bc97ee2d342