Add a default_charset method to Resource

If the client doesn't provide an Accept-Charset header, the default will be
used to encode the body.