So it seems that somehow miri bypasses the the check for UTF8 validity when printing a str https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=393c2e1fe450d4a03e7a1d293d54d04e It's a bit too late here for me to debug where it's happening in libstd right now.