'Return text (a unicode object) with all unencodable characters
replaced with \'?\'.
Thus, the returned unicode string is guaranteed to be encodable.'

def _make_encodable(self, text):

    encoding = self.settings.output_encoding
    return text.encode(encoding, 'replace').decode(encoding)
