N-acetylgalactosaminidase activity