main: set the GIOChannel encoding to binary