Treat chunks as byte arrays, not strings.

This makes things work on python3.