Fix wrong call to mb_convert_encoding in resolve()

The charset is extracted from the ContentType, and mb_convert_encoding is called, but the actual $content is never converted to UTF-8 ($content is not passed by reference in this method).