Fixed error in html encoding