Fix encoding, close #10