Fix: encoding issue and close #3 #4