This is the error message that this commit fixes: TypeError: sequence item 142: expected a bytes-like object, str found Complete what 1c46f25e started, more or less.