Fix PermissionError exception printing when passed a string or set..