[TASK] Improve handling of invalid URIs
[TASK] Add dependency to symfony/css-selector