Add experimental support for expr encoding