fix issue #140 #141 : Windows console output codepage to java charset: prefer 'msNNN' to 'cpNNN'

To output java's unicode string we need to encode it according to Windows console's codepage(which may not be the same as jvm's default charset), but there is no well defined mapping between Windows codepage and Java charset, expect this tweak works for most locales.