Setting encoding to binary