CLN: unify unicode file handle processing
xref https://github.com/pydata/pandas/pull/13351#issuecomment-224614415

We use `io/common/_get_handle` and `io/common/get_filepath_or_buffer` in various places in most of the io modules, need to unify encoding handling to a somewhat simpler interface (1 function).
