Fixed crazy chars at eol by adding null terminator to string