fixing non utf-8 error