add prefer_stream arg to utils.encoding.getdefaultencoding
add prefer_stream arg to utils.encoding.getdefaultencoding

sometimes the stream encoding should be ignored,
and start with locale (e.g. Popen on Windows Python 2).

Default behavior is unchanged.
ipython/ipython,ipython/ipython