try encode decode