Update doctests to use explicit bytestrings
Update tests to use explicit bytestrings