close #1

Fix seriously bug with encoding system.