fix character code issue