fix for StringIndexOutOfBoundsException
Merge branch '2.1.x' into 2.2.x
Merge branch '2.2.x'
Merge branch 'master' of github.com:grails/grails-core