Implements the 'replace' error handling, which replaces malformed data with a replacement marker.
codecs/replace_errors
replace_errors