Fix encoding error in some machines

ArgumentError: invalid byte sequence in US ASCII