Replace usage of deprecated Title::escapeLocalURL()

Change-Id: Iad46557179b351a5ae38d3597a57cc2a446badb5