enforce utf-8
explicitly specify content type
avoid using assertDictEqual