file objects no longer have undocumented `ws` property