Undefined #length method call on Pathname in StacktraceInterface

This started happening after updating rspec in one of the projects I am using sentry-raven. Rspec adds a a Pathname object to the Path which caused the error to be raised.

Similar to 82136aed