console_encode() fails on unicode when using ipython-notebook
When running in ipnb (linux) I get:

> > > pandas.common.console_encode(u"\u05d0")
> > > '?'

I traced this back to sys.stdin.encoding being set to None rather then 'utf-8' like in the shell.

Attached is a fix for your consideration. the test is just a stub since mocking is required
to reproduce the bug when testing in the shell instead of inside ipnb.

Thanks for looking into this. I'll take the first commit but won't take the latter without a unit test
 72d014a breaks python 2. Will have to look into it another time
 how do I reproduce the problem on python 2? 
i'll see if I can come up with something cleaner.
 The unit test suite fails on python2
 Added a unit test and a guard so that things behave properly when series.name is 
actually a tuple (didn't know that was an option).

test_series and test_format pass over here.
 Thanks. cherry-picked these
