change reading of credentials to use readString() to try to fix grails 2.3.5 issue