use replacement character if encountering non-utf8 data