added function to scrup non utf8 chars from json