fixed bug use to_label not name in format_repos method for the enc
name can contain spaces and break the puppet yumrepo code.