GRAILS-10500 - fix url mapping support for parameters that include a dot

Only exclude dots from url elements if the element is immediately followed by a dot.

This is related to https://github.com/grails/grails-core/commit/20aa322ee7a94d6b419532bdc452bd302e1b0284#diff-fc4e5a151130dd0c3eaaf8838e48664fR198