#136: .DS_Store and similar files cause error on open

fixes issue #136