added URL sanitize code