modify encode for default.html