str -> bytes for Cython 0.19