Fix encoding error when transforming HTML to text.

portal_transforms expects utf-8 encoded bytestrings, not unicode.