region sanitization added for custom url parameters.