[code] fix some encoding issues