str / bytes coexistence support