Update encode.php