public String generateSanitizedId(){
  String result=generateId();
  result=result.replace(':','-');
  result=result.replace('_','-');
  result=result.replace('.','-');
  return result;
}

public String generateSanitizedId ( ) { String result = generateId ( ) ; result = result . replace ( ':' , '-' ) ; result = result . replace ( '_' , '-' ) ; result = result . replace ( '.' , '-' ) ; return result ; }
generate a unique id - that is friendly for a url or file system
