Fixes issue #644.

Needed to call buffer.rewind() prior to binding.

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>
Merge pull request #647 from Tenkiv/master

Fixes #644