ATTACH is a URI value, unless it's specified as BINARY. We had it the other way around.

Fixes #128