BugFix: resolve Pathname issues with #to_s