add encoding
Merge pull request #6 from denuwanthi/master

add encoding