Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I8d5c31b671e0b42bc117b15b8018669bf1fcdb65