This replaces ve.safeDecodeURIComponent(...).replace( /_/g, ' ' ) . This action is really specific to the quirks of mediawiki title processing. Change-Id: Ia9e525c9340e6de9e485355899996c97867ccb48