(Bug 45223) URL-escape title before it is used in URL

Before merging this changeset, please check the current status of
the changeset in https://gerrit.wikimedia.org/r/#/c/51179/

Change-Id: I2c5dcb997157b36fda6547714b12be7dfa6b4712
Merge "(Bug 45223) URL-escape title before it is used in URL"