This behaviour should be explained in documentation. use of bytes!("hell", 0xc0, 0xca, "o!") instead of bytes!("hell\xc0\xca\o1!")