switched urldecode to htmlspecialchars_decode --KW