Update pipe tricks to match php parser

 * Updated the valid title characters regexp from VE's
   wgLegalTitleChars. It was mainly missing a space char.

 * One of the replacement regexps differed.

 * Replacements shouldn't happen sequentially in parsoid because in php
   only one will match.

 * Changes to blacklisted tests are all improvements this patch seeks to
   address.

Bug: 58930
Change-Id: I90344c824d58256de78dbf56fd677fe9f052fe63