Escape URL for use in regex