encode and decode strings