Fixed a bytes/str related issue.