Use accessor to do encoding
Upgrade the version of replicant