Sanitize generated nix-attrnames.