Fix binary encoding for non-native zero value