make sure dashes are legal in bundle ids (fix #912)
Merge pull request #916 from jlipps/master

fix bundle id issues