Fix bytes issue on Python 3.x.