fix encoding charactes