Modify for adding content-type charset=utf-8 to api