fix for GRAILS-10507: g:javascript didn't default to js-encoding with resource plugin