More places receiving bytes need to convert to str before doing split

This seems to fix the flapping issue I reported in #604. Thanks to @amarandon.