If a string ends up with multiple encodings, normalize to UTF8

Backporting 144749472d1a3fa146161f0830a9e41c422905f0

- This fixes a problem I had decoding headers from an email I
  received.