Switched to using bytes.Buffer for building strings.