charset detection fixed. close #34