Tile-based self-assembly of a triple-helical polysaccharide into cell wall-like mesoporous nanocapsules.