changed keep_unicode dictionary key into a proper as_unicode argument