Fix Python3 next, encoding.