Use ensure_str in cyruslib as well
We mostly just want to work with strings,
but e.g. utf7 encoded patterns come as binary.
Simply converting everything back to string seems to be the easiest fix
for now, but we may want to consider why we pass in binaries in the
first place.