creates segment container and handles slashes in container name for segment files