Fix xml dump gen to use textlib correctly
Fix xml dump gen to use textlib correctly

Addressing the following issues:
* sending correct parameters to replaceExcept in
  the correct order (e.g site)
* using the exceptions of the replacement to avoid generation of
  non putative replacements

Change-Id: I5262878d096dd0b25dc22d77337aa5e351e0cbda

hasteur/g13bot_tools_new,happy5214/pywikibot-core,wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core,jayvdb/pywikibot-core,happy5214/pywikibot-core,Darkdadaah/pywikibot-core,npdoty/pywikibot,magul/pywikibot-core,Darkdadaah/pywikibot-core,npdoty/pywikibot,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,magul/pywikibot-core,hasteur/g13bot_tools_new