fix encoding problems when title is not ascii format