Fix the bytes/str usage in Revoked and tests
2 files changed