I think you’d want `str::raw::from_bytes_owned` to avoid the UTF-8 check. (This is safe when the map only changes bytes in the ASCII range.)