Convert data to str for Py3