Fixup str/bytes topic handling in set_topic_partitions