beta-N-acetylhexosaminidase activity [GO_0004563] - Virtual Fly Brain