Fix bug in lexing strings with nullchar