Exposed the Encoding used for the querystring and form body

Closes #608