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.