Adding URL sanitization to prevent security issues.