make sure dashes are legal in bundle ids (fix #912)