Fix &quot; javacript encoding problem

This seems to work. See http://grails.org/doc/2.3.1/guide/security.html