Fix potential panic in `NewStreamTokenFromString` caused by off-by-one error (#2196)
Fix potential panic in `NewStreamTokenFromString` caused by off-by-one error (#2196)

Line 291 could panic when trying to set `positions[i]` if `i == len(positions)`.
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite