build for windows, fixed encoding issues