Use default argument for "getpreferredencoding()"

This is necessary on some systems to get the user preferences. This
fixes #139, where reading from standard input causes a crash on Python
2.7.
Don't put parentheses around something ending with a comma.

It could be a member of a list, in which case it will mess things up
royally.