make ref names use dashes consistently