ensure values are stored as binary type to avoid utf8 errors