The crate `url` already had those serde traits implemented but they were hidden behind a feature flag.