Force encoding to binary for ruby 2.0