specstd = {ord('\u2019'): "'"}

def specials(error):
    return specstd.get(ord(error.object[error.start]), ''), error.end
codecs.register_error('specials', specials)

def bu():
    return unicodedata.normalize('NFKD', x).encode('ASCII', 'specials')
latin-1 to ascii