Fix performance issue with GStringImpl
fixes the side-effect of refactoring made in bcdf45e8a9787ed0b0537bc93f6f4e7968a5a174
https://github.com/grails/grails-core/commit/bcdf45e8a9787ed0b0537bc93f6f4e7968a5a174#L100L524