Use a more general method to sanitize URLs with credentials: Simple and intuitive / Faster / Remove all credentials in all URLs