fixed encoding error in setPrefix