fix for unicode exeptions