Fixed reproduction of unicode exception, specified default encoding for windows systems