catch unicode error
modify sample