Update encode.lua

Improved alphabet encryption environment system.