util.c: Make selector parsing more strict.