Check bindings for binary data

Fixes #107
Copied back from the Pdo collector