Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I7e6e048db4fff1f6a936844df8504f8e46436a68