Test and fix for str(SFTPAttributes())

This PR adds a test for and fixes #357