Use the same slugify techniques for attrs that rax.py uses, but maintain backwards compat for old attrs