in ruby protocol buffers a binary field is just a string with encoding ASCII_8BIT, so your change will apply to binaries as well