Compactification of cut-point spaces