added charset support to response, switched default mimeType to application/json