Use `encoding-error' instead of `misc-error' for string encoding errors.