fix c-style problem and utf-8 problem