GROOVY-6012: Source encoding is not used when scripts are reloaded
GROOVY-6012: Replace anonymous inner class with instance initializer