fixes #497: do not throw plain strings for failed pattern matches