Fixes #2632 - extract strings from validation errors