fix regexp replacer for hash bucket names