Fixed encode-html function.