Handle chcp failure.

Intended to resolve #137.