always encode tid