Fix encoding of -1 (EOF) in serialized lexer actions (fixes #449)