werkzeug.BaseRequest.encoding_errors

BaseRequest.encoding_errors = 'replace'

the error handling procedure for errors, defaults to ‘replace’