tomoyo_encode2
char *tomoyo_encode2(const char *str, int str_len);
buf = tomoyo_encode2(buf, len);
return str ? tomoyo_encode2(str, strlen(str)) : NULL;