cleanup of non-utf8 encoding