Add URL validation and better escaping method for faster CSV export generation