Fixed truncation of strings, needed nullbyte at end to be a C string
Merge pull request #19 from ollieh/master

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