Use codepoint rather than binary in expectation

The default source encoding varies between Ruby versions. If it changes
again, we need to be more explicit.