Fix character encoding issues on Windows. Close #34.