Added encode/decode texts for saving future texts when server dies