I remember the first time I saw this problem. “Encode a list of strings into one string, then decode it back.” My immediate thought: just use a comma. What could go wrong?
Join strings with a comma. Split on comma. Done. You've solved the problem.
Pick a delimiter to join these strings: