updated the htmlEncode and htmlDecode methods