Fixing bugs when receiving IMs from Microsoft Lync.
Prior to this patch, when one used Pidgin and received IMs from
another use that is using Microsoft Lync, the HTML would become
garbled.