Working encode of expressions :D