Ensure binary encoding