Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I5687902491a1ed34b9a9ab9eb9d6cc2100328d23