Fixed truncation of strings, needed nullbyte at end to be a C string