Fix memory allocation bug. 

* Fix memory allocation bug in lexer
* Change files encoding to UTF8
* Remove binary files and update .gitignore