Knotty inflation and the dimensionality of spacetime