esc_url before removing protocols, encodeURIComponent on search query