TML basic entity encoder and decoder support