"0" is not an acceptable encoding
encodings and binmodes are not mutually exclusive

This is not a great solution, but for now it's a useful bandaid.