Fix encoding settings

Subclass Response, Request, and HTTPException to return JSON data