add encode
Merge pull request #1 from njndxjj/casinogod

add encode