Handle chcp failure.
Merge pull request #153 from mohawk2/chchupdate

Handle chcp failure.