bind now more careful about length of input. Fixes #18.