Py3k fixes for string.