fix the enconding issue