export encode