Working oisems message encode/decode