fix encoding in replication
3.0.2