Fixed parsing null terminated string bug