Ruby string encoding is so tricky. e.g.

dst << src

In order to change the encoding of the dst string to binary if src is
binary, I have you change the coderange of src string to some thing
other than ascii_7bit.