move DefaultEncodingState from GrailsWebRequest to separate file in grails-core