Fix stupid bug terminating a string with newline instead of null.