Allow dashes in branch names, so the branch and subdomain can match.

The names still won't match if underscores or other special characters
are used, but this at least makes things more obvious in the common case
of dashes.