Encode the text even when target encoding is the same as charset

This is needed to help us remove invalid characters set by some mail
clients.