class SymbolicationError(Exception):
    message = None

    def __init__(self, message):
        if isinstance(message, bytes):
            message = message.decode('utf-8', 'replace')
        Exception.__init__(self, message)
        self.message = message

    def __str__(self):
        return self.message.encode('utf-8')

    def __unicode__(self):
        return self.message

Move exception into common module and add unicode support
Move exception into common module and add unicode support
