Handle file objects without encoding attribute set

```file.encoding``` attribute doesn't need to be present (https://docs.python.org/2/library/stdtypes.html#file.encoding), this patch makes objgraph work with Eventlet and monkey patching.