Fixed obvious error in htmlencode