Added support for handing different encodings specified in HTTP Headers

Hi,

I have implemented support for handing charset encoding, if specified in HTTP headers. I also added a few tests to verify this improvement and that pass succesfully.

The branch is 0.5m1 as I am currently using Grails 1.3.7 for my work.

Best regards,
Dumitru Postoronca