Since files may be text (utf-8 encoded) or binary, it is better to treat all files as binary and encode/decode when we know we're dealing with text files. SQLite doesn't care, but PostgreSQL does. Fixes: #41