Replace usage of deprecated Title::escapeLocalURL()

Change-Id: I4e98a432404293122cfe09d03bda5e41b123fca3