Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I0b3e81cd9bebb0f992e2535dad542cf8518c8a08