Handle Psych::SyntaxErrors better. Fixes #571