lexer: Fix buffer overread in journaling when source does not end in \n.