Expand MediaWikiEscaper to escape identifiers

Change-Id: Ifdce9d878b778442707f4c51877f43b4aba8062a
Merge "Expand MediaWikiEscaper to escape identifiers"