Replace usage of deprecated Title::escapeLocalURL()

Change-Id: Ib4c36f5a3fb549bd494ddf10fa221904eda4a8f4