def _a_encode_unicode(value, mapping):
    """
    'foo-bar' --> ('7', 's', 'foo-bar')
    """
    assert isinstance(value, str), 'VALUE has invalid type: %s' % type(value)
    value = value.encode('UTF-8')
    return str(len(value)).encode('UTF-8'), b's', value
