Serializing spans: building the string from an array, rather than the string directly