Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I770e45abcb0c261ee936c64ea893ea5b49877c32