Add error log to RHTTPRequest. Use URL coding if JSON parsing failed in RHTTPRequest.