replaced encodeAsMD5() from Grails with own implementation