String joinWithGoodName(String p, String name)

Source

static String joinWithGoodName(String p, String name) {
  return new Path(p).child(NodeNamer.createName(name)).path;
}