Fixed a bug in C version of string_join with long strings