tiny utility to normalize case recursively