modify page encode