relax encode