Changed encoding to binary