fer, which cannot be used to violate the utf-8 property.</p>

<h4 id='dynamic-enforcement' class='section-header'><a href='#dynamic-enforcement'>Dynamic enforcement:</a></h4>
<p>Malformed inputs from the client are hazards to library-level
guarantees, so library APIs should validate their input.</p>

<p>For example, <code>std::str::from_utf8_owned</code> attempts to convert a <code>u8</code>
slice into an owned string, but dynamically checks that the slice is
valid utf-8 and returns <code>Err</code> if not.