envoyd: use strncmp instead, more appropriate