freerds: fix usage of rfx_encode_messages