Oh damn. I was thinking about this as if I was truncating a UTF-8 sequence down to one byte, but that's clearly not correct. I've used the same pattern of `c as u8` elsewhere, which I'll have to fix.