Fixed encoding/decoding of html code.