Add CP932 support

This PR replaces #7 and adds support for CP932, along with a few unit tests. Thanks to @hashy for pointing out for initially working on this. I just updated things to work with the latest version of the code.