config: add helper to normalize and match URLs