io: make bin variable encoding c# compatible