region sanitization added for custom url parameters.
Merge origin/master