Fix quoting

Swift.split only splits when a string of length results, so quotes at
the beginning and end of a string are lost (rather than captured in an
empty string). Here we use reduce instead to escape quotation marks.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>