Speed up `tr_error_propagate'
Merge branch 'error-handling' into ticket/4160-foreign-characters-support