Support passing in "buffer" objects again where bytestrings are expected.

This fixes bzr's use of paramiko.

Fixes issue #343/#285.