Make sure new hostname will show up immediately.
Use regexes to relax matches when updating xmpp hostname.