Split apart textevents class into str and bytes versions.