Fix charset problems
Fix sign error