Treat []byte as a string while encoding