Improved robustness for richstring evaluation (a little bit).